package org.saratogaschools.edd.firefighter.client.util;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.dom.client.DivElement;

public final class Map extends JavaScriptObject {
	
	protected Map() {}
	
	public static native Map create(DivElement container) /*-{
		var myOptions = {
	          zoom: 12,
	          mapTypeId: $wnd.google.maps.MapTypeId.ROADMAP
	        };
        var map = new $wnd.google.maps.Map(container, myOptions);
        return map;
	}-*/;
	
	public native void setCenter(LatLng center) /*-{
		this.setCenter(center);
	}-*/;
	
	public native LatLngBounds getBounds() /*-{
		return this.getBounds();
	}-*/;

	public native void panToBounds(LatLngBounds bounds) /*-{
		this.panToBounds(bounds);
	}-*/;

}
